import {WEBMAPFRNCE_RUL} from '@/services/api'
import {request, METHOD} from '@/utils/request'

let KEY = '97562150af9ba3561af0a72d9d5fc8b1';
export async function createFence(data = {}) {
    return request(`${WEBMAPFRNCE_RUL}?key=${KEY}`, METHOD.POST, {
        ...data
    })
}
export async function getFence(params = {}) {
    return request(WEBMAPFRNCE_RUL, METHOD.GET, {
        key: KEY,
        ...params
    })
}
export async function delFence(params) {
    return request(WEBMAPFRNCE_RUL, METHOD.DELETE, {
        key: KEY,
        ...params
    })
}